import request from '@/utils/request'

// 获取客户列表
export function getList(params) {
  return request({
    url: '/api/pds/pdsCustomer/getPdsCustomerList',
    method: 'get',
    params
  })
}
// 获取客户详情
export function getPdsCustomerDetail(params) {
  return request({
    url: '/api/pds/pdsCustomer/getPdsCustomerDetail',
    method: 'get',
    params
  })
}
// 客户新增保存草稿
export function savePdsCustomerToDraft(data) {
  return request({
    url: '/api/pds/pdsCustomer/savePdsCustomerToDraft',
    method: 'post',
    data
  })
}
// 客户新增提交
export function submitPdsCustomer(data) {
  return request({
    url: '/api/pds/pdsCustomer/submitPdsCustomer',
    method: 'post',
    data
  })
}
// 客户由意向客户转为正式客户
export function changeCustomerStatus(data) {
  return request.post({
    url: '/api/pds/pdsCustomer/changeCustomerStatus',
    data
  })
}
// 获取客户形态
export function formDv(id) {
  return request({
    url: '/api/dict/dictValue/type/' + id,
    method: 'get'
  })
}
// 客户由意向客户转为正式客户
export function deletePdsCustomer(data) {
  return request.post({
    url: '/api/pds/pdsCustomer/deletePdsCustomer',
    data
  })
}
